'use strict';

/*
 全局常量
 */
import {StyleSheet, Dimensions, PixelRatio} from "react-native";
import TestData from "./TestData";
var GlobalConst = {
    //版本
    version: '1.0.0',
    //单位像素
    pixel: 1 / PixelRatio.get(),
    //屏幕尺寸
    size: {
        width: Dimensions.get('window').width,
        height: Dimensions.get('window').height
    },
    storagekeyLogin: 'login',
    storageToken: 'storageToken',
    registeredIdKey: 'registeredIdKey',
    registeredId: 'registeredId',
    token: '',
    storageUser: 'user',
    storagekeySearch: 'search',
    longitude: 100,
    latitude: 100,
    colorWhite: '#fff',
    transparent: '#F2F3F5',

};
var GlobalStyle = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: GlobalConst.colorWhite,
    },
});

const GlobalFontColor = {
    /**浅灰色**/
    LightGrey: '#999999',
    /**深灰色**/
    DarkGray: '#666666',
    /**黑灰色**/
    DimGray: '#333333',
};

export default {
    // HOST : 'http://192.168.0.34/Api',

    HOST: 'http://xc.xiarikui.cn/Api',
    IMGHOST: 'http://192.168.0.34/Api',
    OPERATEERR: '操作失败',
    SERVERERR: '网络错误',
    DATAERR: '获取数据失败',
    Const: GlobalConst,
    Style: GlobalStyle,
    AdImg: TestData.AdImg,
    MapListData: TestData.MapListData,
    MapSearchResults: TestData.MapSearchResults,
    QuestionAnswerData: TestData.QuestionAnswerData,
    TravelData: TestData.TravelData,
    HelpToBuyData: TestData.HelpToBuyData,
    DatingPartnerData: TestData.DatingPartnerData,
    FontColor: GlobalFontColor,
    AllData: TestData.AllData,
}

